package com.modifiertech.lineage.commands;

import com.modifiertech.lineage.Lineage;
import com.modifiertech.lineage.api.LineageModAccess;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.text.TextComponentBase;
import net.minecraftforge.fml.common.FMLCommonHandler;

public class SPCmdHelper {

    public static void execClientSay(TextComponentBase textComponents){
    	if(!LineageModAccess.isClientSide()) {
    		return;
    	}
        try{
            Minecraft.getMinecraft().player.sendMessage(textComponents);
        }catch (Exception e){
            Lineage.logger.error(e.getMessage());
        }
    }

}
